import type { Dayjs } from 'dayjs'
export type ConditionsType = {
  id: string
  type: string
  user: string
  platform: string
  timeRange: [Dayjs, Dayjs]
}

// 数据看板响应数据格式
export type DataBoardDataType = {
  xData: string[]
  activeUsersCount: number[]
  nextDayRetention: number[]
  sevenDayRetention: number[]
  fifteenDayRetention: number[]
  sessionsCount: number[]
  sessionTurnCount: number[]
  historicalUsersCount: number[]
}

// 数据看板子组件props
export type DataBoardItemProps = {
  condition: ConditionsType
  dataInfo: DataBoardDataType
  loading: boolean
}
